Skip to content

compute: measure index peek row workloads - #37989

Merged
aljoscha merged 1 commit into
MaterializeInc:mainfrom
aljoscha:compute-index-peek-row-metrics
Aug 10, 2026
Merged

aljoscha merged 1 commit into
MaterializeInc:mainfrom
aljoscha:compute-index-peek-row-metrics

Conversation

@aljoscha

Copy link
Copy Markdown
Contributor

Motivation

The existing index peek metrics expose phase durations but not the amount of work behind row iteration and intermediate result sorting. This makes it difficult to distinguish slow per-row processing from peeks that simply process more rows.

Changes

  • Add a per-peek histogram for arrangement rows evaluated by the result iterator, including rows removed by MFP evaluation.
  • Add a per-peek histogram for intermediate result rows sorted. This sums input rows across repeated thinning sorts to align with the existing accumulated sort-duration metric.
  • Use exponential row-count buckets with an explicit zero bucket and regenerate the metrics catalog.

Tests

No new tests were added. Existing compute unit tests, compilation, formatting, Clippy, and metrics-catalog validation cover the changed instrumentation and registration paths.

@aljoscha
aljoscha requested review from a team as code owners July 31, 2026 16:37
@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA.
Posted by the CLA Assistant Lite bot.

Add per-peek histograms for arrangement rows evaluated during row iteration and intermediate result rows sorted. The sort metric sums rows across repeated thinning sorts so it reflects the work represented by the existing sort-duration metric.

Amp-Thread-ID: https://ampcode.com/threads/T-019fb8f1-6c3d-7309-9613-cba4ad9b71d0
@aljoscha
aljoscha force-pushed the compute-index-peek-row-metrics branch from 73a8c4e to b0ddbc7 Compare July 31, 2026 17:11
@aljoscha
aljoscha requested review from DAlperin and petrosagg August 1, 2026 16:30
@aljoscha
aljoscha merged commit 783a693 into MaterializeInc:main Aug 10, 2026
124 checks passed
@aljoscha
aljoscha deleted the compute-index-peek-row-metrics branch August 10, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants